package edu.wy.dao;

import edu.wy.dto.EventInformationDTO;
import edu.wy.entity.EventInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * (EventInformation)表数据库访问层
 *
 * @author makejava
 * @since 2025-04-24 16:42:29
 */
@Mapper
public interface EventInformationDao {
    /**
     * 通过userId查询数据
     *
     * @param userId 当前用户Id
     * @return 实例对象
     */
    List<EventInformationDTO> queryAllByUserId(@Param("userId") Integer userId);

    List<EventInformationDTO> queryAllByDate(
            @Param("userId") Integer userId,
            @Param("dateStr") String dateStr
    );

    List<EventInformationDTO> queryAllByMonth(
            @Param("userId") Integer userId,
            @Param("monthStr") String monthStr
    );

    List<EventInformationDTO> queryAllByWeek(
            @Param("userId") Integer userId,
            @Param("beginDateStr") String beginDateStr,
            @Param("endDateStr") String endDateStr
    );
}

